
package com.csun.cmny.provider.service.impl;


import com.csun.cmny.provider.dao.UacGroupLifeMapper;
import com.csun.cmny.provider.model.domain.UacGroupLife;
import com.csun.cmny.provider.service.UacGroupLifeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 默认的短信验证码发送器
 *
 * @author paascloud.net @gmail.com
 */
@Slf4j
@Service
public class UacGroupLifeServiceImpl implements UacGroupLifeService {

	@Resource
	private UacGroupLifeMapper uacGroupLifeMapper;


	@Override
	public UacGroupLife selectOne(Long groupId) {
		return uacGroupLifeMapper.selectByPrimaryKey(groupId);

	}

	@Override
	public Integer add(UacGroupLife uacGroupLife) {
		return uacGroupLifeMapper.insert(uacGroupLife);
	}

	@Override
	public Integer update(UacGroupLife uacGroupLife) {
		return uacGroupLifeMapper.updateByPrimaryKey(uacGroupLife);
	}

}
